<template>
  <div>
    <template v-if="list.length > 0">
      <item v-for="item in list" :key="item.instanceId" :info="item" />
      <uni-load-more :status="moreStatus" />
    </template>

    <van-empty v-else description="暂无数据" />
  </div>
</template>

<script>
import Item from './item.vue'
import { getDoneTasks } from '@/apis/process'
import { createScrollListMixin } from '@/mixins/scroll-list'

export default {
  name: 'TodoList',
  components: { Item },
  mixins: [createScrollListMixin(getDoneTasks)],
}
</script>
